return;
if (!GDK_IS_WINDOW (wl_surface_get_user_data (surface)))
return;
+ if (!device->pointer_focus)
+ return;
_gdk_wayland_display_update_serial (wayland_display, serial);
GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (device->display);
GdkEvent *event;
+ if (!device->pointer_focus)
+ return;
+
event = gdk_event_new (GDK_NOTHING);
device->time = time;
GdkWaylandDisplay *wayland_display =
GDK_WAYLAND_DISPLAY (device->display);
+ if (!device->pointer_focus)
+ return;
+
_gdk_wayland_display_update_serial (wayland_display, serial);
switch (button) {
GdkEvent *event;
gdouble delta_x, delta_y;
+ if (!device->pointer_focus)
+ return;
+
/* get the delta and convert it into the expected range */
switch (axis) {
case WL_POINTER_AXIS_VERTICAL_SCROLL: